package com.sanchunhui.psc.service.impl

import com.sanchunhui.psc.data.protocol.ResponseInfo
import com.sanchunhui.psc.data.respository.DeviceRepository
import com.sanchunhui.psc.service.DeviceService
import rx.Observable
import javax.inject.Inject

/**
 * @Author zyx
 * @Date 2021/8/6-14:36
 * @Dscribe
 */
class DeviceServiceImpl @Inject constructor() : DeviceService{

    @Inject
    lateinit var repository : DeviceRepository
    override fun addDeviceForMember(
        token: String,
        mac: String,
        device_type_id: Int,
        name: String
    ): Observable<ResponseInfo> {
        return repository.addDeviceForMember(token, mac, device_type_id, name)
    }
}